<?php echo '<?xml version="1.0" encoding="utf-8"?>' . "\n";?>
<rss version="2.0">
	<channel>
	    <title><?php echo $titulo;?></title>
<?php
foreach ((array)$rs as $r) {
?>
		<item>
			<title><?php echo $r['titulo'];?></title>
			<link><?php echo $r['link'];?></link>
			<description><?php echo $r['descricao'];?></description>
			<pubDate><?php echo sql2date($r['data'], 'd/m/Y H:i');?></pubDate>
		</item>
<?php
}
?>
	</channel>
</rss>